<template>
  <section class="app-main">
    <transition name="fade" mode="out-in">
      <!-- <router-view :key="key"></router-view> -->
      <router-view></router-view>
    </transition>
  </section>
</template>

<script>
export default {
  name: 'AppMain',
  computed: {
    // key() {
    //   return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
    // }
  },
  methods: {
    GetNoticesList() {
      this.$store.dispatch('GetNoticesList')
        .then(response => {
          // 先关闭弹窗
          // for (const key in response.data) {
          //   alert(response.data[key].content)
          // }
        })
    },
  },
  created() {
    this.GetNoticesList()
  },
  data() {
    return {
      notices: '', // 公告
    }
  },
}
</script>
<style>
  .app-main{
    width: 100%;
  }
</style>
